import axios from '../request';
import { InvestigParmas } from '../model/investigation';
interface PageInfo {
  value?: string;
  pageNo: number;
  pageSize: number;
}
// 保存学术研究服务
export const investigationSave = (projectId: number | string, parmas: InvestigParmas) => {
  return axios.post<any>(`api/investigation/${projectId}`, parmas);
};
//获取学术研究详情
export const investigationDetail = (investigationId: number) => {
  return axios.get<any>(`api/investigation/doorDetail/${investigationId}`, {});
};
// 删除商品
export const investigationDelete = (projectId: number | string, goodsId: number) => {
  return axios.delete<any>(`api/investigation/${projectId}/${goodsId}`, {});
};
//数码列表
export const investigationList = (projectId: number | string, parmas: PageInfo) => {
  return axios.get<any>(`api/investigation/list/${projectId}`, parmas);
};
